#include "junix.h"

int main(int argc, char **argv)
{
	if(argc!=3)
	{
		fprintf(stderr,"Usage:%s file uid\n",argv[0]);
		exit(EXIT_FAILURE);
	}

	uid_t uid = atoi(argv[2]);
	if(chown(argv[1],uid,uid))
	{
		perror("chown");
		exit(EXIT_FAILURE);
	}

	return 0;
}

